const path = require('path');

module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'https://runninghub.cn',
        ws: true,
        changeOrigin: true,
        headers: {
          'Host': 'www.runninghub.cn'
        }
      },
      '/task': {
        target: 'https://runninghub.cn',
        ws: true,
        changeOrigin: true,
        headers: {
          'Host': 'www.runninghub.cn'
        }
      },
      '/uc': {
        target: 'https://runninghub.cn',
        ws: true,
        changeOrigin: true,
        headers: {
          'Host': 'www.runninghub.cn'
        }
      }
    }
  }
}; 